<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<x:parse xml="${param.xmlstr}" var="xmlData" />
<div class="t_bar">附件列表</div>
		<table id="prp_attachs" label="附件" border="0" cellspacing="0" cellpadding="0" class="table01 t_css">
				<thead>
					<tr>
						<th width="40px">序号</th>
						<th width="200px">附件类型</th>
						<th>附件名称</th>
						<th>上传日期</th>
						<th>操作</th>
					</tr>
				</thead>
				<tbody>
					
					<c:set value="0" var="index" scope="page" />
					<x:forEach select="$xmlData/data/prp_attachs/prp_attach" var="prp_attach">
						<tr>
							<td align="center">
							<x:out select="$prp_attach/@seq_no" />
							</td>
							<td>
								<x:out select="$prp_attach/attachtype_name" />
		                    </td>
							<td>
								<x:out select="$prp_attach/name" />
							</td>
							<td align="left">
								<x:out select="$prp_attach/file_date" />
							</td>
							<td>
								<c:set var="fileCode">
									<x:out select="$prp_attach/file_code" />
								</c:set> 
								<c:set var="etyfileName">
									<x:out select="$prp_attach/entity_file_name" />
								</c:set> 
								<c:if test="${fileCode!=''}">									
									<a href="${ctx}/file/ajax-filedownload?fileCode=${fileCode}" ><span class="color_blue" >下载文件(${etyfileName})</span></a>
								</c:if> 
							</td>
						</tr>
						<c:set value="${index+1}" var="index" scope="page" />		
					</x:forEach>
				</tbody>
			</table>
		<br/>
		
	    </table>
